home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7987 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: anvil.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: malloc()
  5. Date: 28 Feb 1996 11:41:14 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4h2b4qINNdh0@anvil.ugrad.cs.ubc.ca>
  8. References: <31346F12.167E@mashie.ece.jhu.edu>
  9. NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
  10.  
  11. In article <31346F12.167E@mashie.ece.jhu.edu>,
  12. Chenyang Xu  <chenyang@mashie.ece.jhu.edu> wrote:
  13.  >Hi, there,
  14.  >
  15.  >    I posted a question about debugging problems related to malloc().
  16.  >Thanks for a wonderful comp.lang.c newsgroup. The replys are very
  17.  >helpful. With these help, I am able to detect the bug in my program
  18.  >which has been bugging for several days. As an appreciation, I compiled
  19.  >the replies I got and post them back and hope other people can benefit
  20.  >from these replies. 
  21.  >
  22.  >    Before I go on, I'd like to advocate the use of ElectricFence to
  23.  >debug problems related to malloc(), calloc(), and free() etc. I got this
  24.  
  25. me too.
  26.  
  27.  >advice from c2a192@ugrad.cs.ubc.ca. I compiled it and it helped me find
  28.  >the bug quickly together with some knowledges I learned from other
  29.  
  30. It's awesome. When in doubt, use hardware!  The associative TLB lookup hardware
  31. that your CPU uses to do virtual address translation is far faster at catching
  32. bad pointers than any emulator/bounds checker. :)
  33. -- 
  34.  
  35.